<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>员工信息页面</title>
</head>
<body>
	<table border="1px"">
		<tr>
			<th>姓名</th>
			<th>性别</th>
			<th>年龄</th>
			<th>部门</th>
			<th>职务</th>
			<th>工龄</th>
			<th>修改</th>
			<th>删除</th>
		</tr>
		<c:forEach items="${empList }" var="emp">
			<tr align="center">
				<td>${emp.name }</td>
				<td>${emp.sex }</td>
				<td>${emp.age }</td>
				<td>${emp.department }</td>
				<td>${emp.type }</td>
				<td>${emp.year }</td>
				<td><a href="updateEmployee.jsp?id=${emp.id }">修改</a></td>
				<td><a href="DelectEmployeeServlet?id=${emp.id }">删除</a></td>
			</tr>
		</c:forEach>
		<tr><td><a href="addEmployee.jsp">新增员工信息</a></td></tr>
	</table>
</body>
</html>